package truef.service.sao.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.cs.software.base.service.impl.GenericTreeManagerImpl;
import truef.sao.dao.ShoppingCartDao;
import truef.sao.domain.ShoppingCart;
import truef.service.sao.service.ShoppingCartManager;

@Service(value="ShoppingCartManager")
public class ShoppingCartManagerImpl extends GenericTreeManagerImpl<ShoppingCart,Long> implements ShoppingCartManager{

	ShoppingCartDao shoppingcartDao;

	@Autowired
	public void setShoppingCartDao(ShoppingCartDao shoppingcartDao) {
		this.shoppingcartDao = shoppingcartDao;
		this.treeDao = this.shoppingcartDao;
		this.dao = this.treeDao;
	}

}
